package org.dromara.bean.domain.vo;

import cn.hutool.json.JSONArray;
import org.dromara.bean.domain.HisQuestionnaire;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 问卷视图对象 his_questionnaire
 *
 * @author Lion Li
 * @date 2024-11-20
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = HisQuestionnaire.class)
public class HisQuestionnaireVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 问卷标题
     */
    @ExcelProperty(value = "问卷标题")
    private String title;

    /**
     * 返回结果
     */
    @ExcelProperty(value = "返回结果")
    private String results;

    /**
     * 题目
     */
    @ExcelProperty(value = "题目")
    private String topic;



    /**
     * 问卷封面
     */
    @ExcelProperty(value = "问卷封面")
    private String photo;

    /**
     * 问卷封面Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "photo")
    private String photoUrl;
}
